﻿@model S4Store.Models.Car.CarBrandListPage
@{
    ViewBag.Title = "Index";
    Layout = null;
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
<div class="listpage verticalSplitContainer" style="height:100%;">    

@if (CurrentUser.Position == S4Store.Domain.Position.SystemManager)
{
    <div class="panelBar"  ratio="#25">
        <ul class="toolBar">
                <li class=""><a target="dialog" href="@Url.Action("Add")" backtype="html" refreshonclose="true"><span class="icon add">添加车型</span></a></li>
           
                <li class=""><a target="dialog" href="@Url.Action("Modify")" backtype="html" refreshonclose="true" beforechk="link.onlySelectOne()"  postdata="{id:link.getSelectid()}"><span class="icon edit">修改车型</span></a></li>
            
               @* <li class=""><a confirm="确定要删除吗?" target="ajax" href="@Url.Action("Delete")" backtype="refresh" postdata="{ids:link.getSelectids()}"  refreshonclose="true"><span  class="icon delete">删除车型</span></a></li>*@
            
                <li class=""><a target="ajax" href="@Url.Action("Upline")" backtype="refresh" postdata="{ids:link.getSelectids()}"  refreshonclose="true"><span  class="icon up">上线</span></a></li>
                <li class=""><a target="ajax" href="@Url.Action("Downline")" backtype="refresh" postdata="{ids:link.getSelectids()}"  refreshonclose="true"><span  class="icon down">下线</span></a></li>
           
        </ul>
    </div>
}
<div  ratio="*" class="verticalSplitContainer dataRefresh">
@Html.Action("Query")
</div>
</div>